package com.ssy.lingxi.pay.api.feign;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.pay.api.fallback.CreditBillControllerFallback;
import com.ssy.lingxi.pay.api.model.vo.request.CreditBillInitVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 *
 * @author 伍将
 * @date 2020/8/28
 * @version 2.0.0
 */
@FeignClient(name = "pay-service", fallback = CreditBillControllerFallback.class)
public interface ICreditBillFeignControllerFeign {

    /**
     *
     * @author 伍将
     * @date 2020/8/28
     **/
    @RequestMapping("/pay/creditBill/feign/init")
    Wrapper init(@RequestBody @Valid CreditBillInitVO initVO);

    /**
     *
     * @author 伍将
     * @date 2020/8/28
     **/
    @RequestMapping("/pay/creditBill/feign/initOverdue")
    Wrapper initOverdue(CreditBillInitVO initVO);
}
